package com.ddlaw.serviceImpl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.ddlaw.entity.TLawyer;
import com.ddlaw.entity.TLawyerDetailCustom;
import com.ddlaw.entity.TStudentDetaiCustom;
import com.ddlaw.mapper.TLawyersDetailMapper;
import com.ddlaw.service.LawyerDetailService;

@Service
@Transactional
public class LawyerDetailServiceImpl implements LawyerDetailService{

	@Resource
	TLawyersDetailMapper detailMapper;
	
	
	
	@Override
	public List<TLawyerDetailCustom> getAllLawyers(Map params) {
		// TODO Auto-generated method stub
		return detailMapper.getAllLawyers(params);
	}
	
	@Override
	public List<TStudentDetaiCustom> getAllOtherLawyers(Map params) {
		// TODO Auto-generated method stub
		return detailMapper.getAllOtherLawyers(params);
	}

	@Override
	public List<TLawyer> getLawyer(Map params) {
		// TODO Auto-generated method stub
		return detailMapper.getLawyer(params);
	}
	
	@Override
	public List<TLawyerDetailCustom> getLawyerByState(int state) {
		// TODO Auto-generated method stub
		return detailMapper.getLawyerByState(state);
	}
	
	@Override
	public TLawyer getLawyerByUserId(int userId) {
		// TODO Auto-generated method stub
		return detailMapper.getLawyerByUserId(userId);
	}
}
